package cn.kickegg.log.demo.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import lombok.Data;

@Data
@Configuration
@ConditionalOnProperty(name = "log.collector.storage.elasticsearch.enabled", havingValue = "true")
@ConfigurationProperties(prefix = "log.collector.storage.elasticsearch")
public class LogCollectorElasticsearchConfig {
    private String hosts;
    private String username;
    private String password;
    private boolean ssl;
    private int connectionTimeout;
    private int socketTimeout;
    private String indexName;
} 